package com.cloud.custom.tasklist.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cloud.custom.common.result.Quokka;
import com.cloud.custom.tasklist.service.TaskListTabProcService;


/**
 * 多媒体面板相关逻辑
 * @author Minglong.tao
 *
 */
@RestController
@RequestMapping("/custom/api/tab/workflow")
public class TaskListTabProcController {

	@Autowired
	private TaskListTabProcService recProcService;
	
	/**
	 * 获取办理流程
	 * @param recId
	 * @return
	 */
	@GetMapping("listprocess")
	public Quokka listProcess(long recId){
		return new Quokka(true, recProcService.listProcess(recId));
	}
}
